package com.example.demo.controller;
import jakarta.annotation.PostConstruct;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("hello")
public class HelloController {
    @RequestMapping("h1")
    //@PostConstruct
    //@GetMapping
    public String hello(Model model, @RequestParam String gender) {
        model.addAttribute("name","Sanda");
        return "hello";
    }
    @RequestMapping("h2")
    public  String helllo2(){
        return "hello";
    }
}
